package cn.jiaqiang.chatgpt.data.types.holder;


public class UserHolder {
    private static final ThreadLocal<Long> tl = new ThreadLocal<>();

    public static void saveUser(Long userId){
        tl.set(userId);
    }

    public static Long getUserID(){
        return tl.get();
    }

    public static void removeUserID(){
        tl.remove();
    }
}
